package spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test02 {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("spring02.xml");
        StudentController sc02 = (StudentController)ac.getBean("sc02");
        Student s02 = sc02.getStudent();
        System.out.println(s02);
    }
}
